home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_4.lha
/
3_4
/
3_4b.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
334b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
lass x
int i;
ublic:
x() { i = 0; }
next() { return ++i; }
y;
/ . . .
include <stdio.h> /* DELETE */
ain() { /* DELETE */
rintf("%d %d\n", y.next(), y.next());
eturn 0; } /* DELETE */